﻿using System.Runtime.Serialization;

namespace StreetPacMan.Server.Facade
{
    [DataContract]
    public class ClientEntity
    {
        public ClientEntity(int entityId, string playerName, PlayerRole role, double lat, double lng)
        {
            EntityId = entityId;
            PlayerName = playerName;
            Role = role;
            Lat = lat;
            Lng = lng;
        }

        [DataMember]
        public int EntityId { get; private set; }
        [DataMember]
        public string PlayerName { get; private set; }
        [DataMember]
        public PlayerRole Role { get; private set; }
        [DataMember]
        public double Lat { get; private set; }
        [DataMember]
        public double Lng { get; private set; }
    }
}